package com.vmove.childtrain.db.entity;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 用户班级
 */
@DatabaseTable(tableName = "child_class")
public class Team {

    @DatabaseField(generatedId = true)
    private int id;

    @DatabaseField
    private String teamname;

    @ForeignCollectionField(eager = true)
    private ForeignCollection<User> users;

    public ForeignCollection<User> getUsers() {
        return users;
    }

    public Team() {
    }

    public Team(int id) {
        this.id = id;
    }

    public void setUsers(ForeignCollection<User> users) {
        this.users = users;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTeamname() {
        return teamname;
    }

    public void setTeamname(String teamname) {
        this.teamname = teamname;
    }

}
